package com.study.gank.di.component

import com.study.gank.mvp.contract.GankGoodsContract
import com.study.gank.ui.fragment.AndroidFragment
import com.study.gank.ui.fragment.GirlFragment
import com.study.gank.ui.fragment.IOSFragment
import dagger.Module
import dagger.Provides
import dagger.Subcomponent

@Subcomponent(modules = [GankGoodsModule::class])
interface GankGoodsComponent {
    fun inject(fragment: AndroidFragment)
    fun inject(fragment: IOSFragment)
    fun inject(fragment: GirlFragment)
}

@Module
class GankGoodsModule(private val mView: GankGoodsContract.View) {
    @Provides
    fun proviceView() = mView
}